package com.huike.springboot1.demos.service.impl;

import com.huike.springboot1.demos.Mapper.PermissionMapper;
import com.huike.springboot1.demos.pojo.Permission;
import com.huike.springboot1.demos.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> getAllPermissions() {
        return permissionMapper.selectAll();
    }
}
